<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditGenBankTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form styleClass="form">
                <p:fieldset  legend="Genbank Edition"  >
                    <h:panelGrid columns="2" styleClass="form_list">
                        <h:outputLabel value="#{bundle.EditGenBankLabel_version}" for="version" />
                        <h:inputText id="version" value="#{genBankController.current.version}" title="#{bundle.EditGenBankTitle_version}" />
                        <h:outputLabel value="#{bundle.EditGenBankLabel_definition}" for="definition" />
                        <h:inputText id="definition" value="#{genBankController.current.definition}" title="#{bundle.EditGenBankTitle_definition}" />
                        <h:outputLabel value="#{bundle.EditGenBankLabel_creationDate}" for="creationDate" />
                        <h:inputText id="creationDate" value="#{genBankController.current.creationDate}" title="#{bundle.EditGenBankTitle_creationDate}" >
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:inputText>
                    </h:panelGrid>
                    <h:commandLink action="#{genBankController.update}" value="#{bundle.EditGenBankSaveLink}"/>
                    <br />
                    <br />
                    <h:commandLink action="View" value="#{bundle.EditGenBankViewLink}" immediate="true"/>
                    <br />
                    <h:commandLink action="#{genBankController.prepareList}" value="#{bundle.EditGenBankShowAllLink}" immediate="true"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.EditGenBankIndexLink}" action="/index" immediate="true" />
                </p:fieldset>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
